<@mits.headerDiv />
<div class="Main" id="Main">
	<!--屏幕切换-->
   
    
    
	<!--左边-->
	<!--右边-->
	<div class="Main_body" id="Main_body">
			  <div class="Main_bodyListBar">
				<div class="Main_bodyListBar_head"><span>卡口信息</span> </div>
		<@mits.showActionMsg />
	    <div class="Main_bodyListBar_body">
	    <form method="post" action="" id="myform" name="myform">
				<table width="100%" border="0" cellpadding="0" cellspacing="1" class="editTable">
            <tbody>
				<tr >
  				<td class="title">卡口名称<em>*</em></td>
                <td class="content">
                <input type="hidden" name="passPort.id" value="${passPort?if_exists.id?if_exists}" width="1"  class="input_short" id="passPort.id"  />
                <input type="text" name="passPort.passPortName" value="${passPort?if_exists.passPortName?if_exists}" dataType="Require"  msg="卡口名称不能为空"    class="input_short" id="passPort.passPortName" maxlength="60" /></td>
                  <td class="title">所属部门<em>*</em></td>	
                    <td class="content">
                <select id="passPort.department.id" name="passPort.department.id">
                <option value="-1" >请选择部门</option>
               
                <#if allDepartments?exists>
                <#list allDepartments as department>
                <option value="${department?if_exists.id?if_exists}" <#if passPort.department?exists><#if passPort.department.id == department.id >selected</#if></#if>>${department?if_exists.departmentName?if_exists}</option>
                </#list>
                </#if>
                </select> </td>				
                				
				</tr>
				<tr >
  				<td class="title">监控起始方向<em>*</em></td>
                <td class="content"><input type="text" name="passPort.startpoint" value="${passPort?if_exists.startpoint?if_exists}"  dataType="Require"  msg="监控起始方向不能为空"  class="input_short" id="passPort.startpoint" maxlength="200" /></td>
  				<td class="title">监控终止方向<em>*</em></td>
                <td class="content"><input type="text" name="passPort.endpoint" value="${passPort?if_exists.endpoint?if_exists}"  dataType="Require"  msg="监控终止不能为空"  class="input_short" id="passPort.endpoint" maxlength="200" /></td>		               				
				</tr>	
				<tr >
  				<td class="title">经度坐标</td>
                <td class="content"><input type="text" name="passPort.latitudeCoor" value="${passPort?if_exists.latitudeCoor?if_exists}"  class="input_short" id="passPort.latitudeCoor" maxlength="200" /></td>
  				<td class="title">纬度坐标</td>
                <td class="content"><input type="text" name="passPort.longitudeCoor" value="${passPort?if_exists.longitudeCoor?if_exists}"  class="input_short" id="passPort.longitudeCoor" maxlength="200" /></td>		               				
				</tr>				
				</tbody>
				  </table>
				  </form>
			</div>
				<div class="Main_bodyListBar_bottom">
				  <div class="Main_bodyListBar_button">
				  <input type="button" class="button" onclick="saveOrUpdate()" value="保存" /> 
				   <input type="button" class="button" onclick="window.location='${base}/auth/system/passPortList.action?cleanSucMsg=true'" value="返回" />
				  </div>
					
				</div>
			<div class="Main_bodyListBar_foot"></div>
		  </div>
		</div>
	
</div>
<script lanague="javascript">
 function saveOrUpdate(){
 		trimAllElements($('myform'));
        if(Validator.Validate($('myform'),3)){
            if ($('passPort.department.id').value == -1 ) {
             alert("请选择所属部门！");
             return;
            }
 			$('myform').action ="${base}/auth/system/passPortSaveOrUpdate.action";
		    $('myform').submit();       
        }
	
		      	     
}   
	
</script>
<@mits.footerDiv />


